<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算天日</title>
</head>
<body>
    
    
    <script>
        var day = parseInt(89/24);
        var data = 89 % 24;

        // 控制台输出
        console.log(day+'天');
        console.log(data+'小时');

        // 页面输出拼接
        document.write('为抵抗洪水，战士连续作战89小时，共' + parseInt(89/24) + '天' + 89 % 24 + '小时');


    </script>
</body>
</html>